package com.scut.chenlujie.library.clink.box;

import javax.swing.text.html.parser.Entity;
import java.io.ByteArrayOutputStream;

public class ByteReceivePacket extends AbsByteArrayReceivePacket<byte[]> {
    public ByteReceivePacket(long len) {
        super(len);
    }

    @Override
    protected byte[] buildEntity(ByteArrayOutputStream stream) {
        return stream.toByteArray();
    }

    @Override
    public byte type()
    {
            return TYPE_MEMORY_BYTES;
    }
}
